import server from './http.js' //导入axios

// 商品详情 的接口

/**
 * 全部详情
 */
const detailsId = (model) => {
    let data = server.post('/product/getDetails', model)
    return data
}
const PictureId = (model) => {
    let data = server.post('/product/getDetailsPicture', model)
    return data
}

// 添加收藏
const AddCollect = (model) => {
    let data = server.post('/user/collect/addCollect', model)
    return data
}
//添加购物车
const AddShoPCart = (model) => {
    let data = server.post('/user/shoppingCart/addShoppingCart', model)
    return data
}



export { detailsId, PictureId, AddCollect, AddShoPCart }
